"use client";
import 'ag-grid-community/styles/ag-grid.css';
import 'ag-grid-community/styles/ag-theme-alpine.css';
import { AuthProvider } from './contexts/AuthContext';
import { RouterProvider } from "react-router-dom";
import router from "./router"; // 导入 router 对象，不是 AppRouter
import 'antd/dist/reset.css'
import './App.css'
import { FitnessProvider } from "./contexts/FitnessContext";

function App() {
  return (
    <AuthProvider>
      <FitnessProvider >
        <RouterProvider router={router} />
      </FitnessProvider>
    </AuthProvider>
  );
}

export default App;